package com.lingyue.entity.module.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyue.entity.module.biz.entity.CustomerEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lizhiyuan
 * @since 2019-11-29
 */
public interface CustomerMapper extends BaseMapper<CustomerEntity> {

    /**
     * 查询客户列表
     * @param dealerId
     * @param mobile
     * @return
     */
    List<CustomerEntity> selectByMobile(@Param("dealerId") Long dealerId, @Param("mobile") String mobile);

    /**
     * 查询经销商列表
     * @return
     */
    List<Long> selectDealerList();
}
